﻿using MediatR;
using MySqlX.XDevAPI.Common;


namespace Production_Set.API.MaterialManagement.Add
{
    public class MaterialCreateCommon : IRequest<THE_WIND_RISES.Common.Dtos.Result>
    {
        /// <summary>
        /// 主键
        /// </summary>
        public int InventoryInfoId { get; set; }

        /// <summary>
        /// 物料/服务
        /// </summary>
        public int ItemServeId { get; set; }

        /// <summary>
        /// 物料编码
        /// </summary>
        public string ItemCode { get; set; }

        /// <summary>
        /// 物料名称
        /// </summary>
        public string ItemName { get; set; }

        /// <summary>
        /// 物料类别
        /// </summary>
        public int ItemTypeId { get; set; }

        /// <summary>
        /// 物料单位
        /// </summary>
        public int ItemUnitId { get; set; }

        /// <summary>
        /// 规格
        /// </summary>
        public string SpecName { get; set; }

        /// <summary>
        /// 规格单位
        /// </summary>
        public int SpecsUnitId { get; set; }

        /// <summary>
        /// 包装规格
        /// </summary>
        public string WrapSpecs { get; set; }

        /// <summary>
        /// 启动质检管理
        /// </summary>
        public bool IsQuality { get; set; }

        /// <summary>
        /// 库存上限
        /// </summary>
        public int InventoryLimit { get; set; }

        /// <summary>
        /// 库存下限
        /// </summary>
        public int InventoryMinimum { get; set; }

        /// <summary>
        /// 存货科目
        /// </summary>
        public string InventoryAccount { get; set; }

        /// <summary>
        /// 销货收入科目
        /// </summary>
        public string SalesRevenueAccount { get; set; }

        /// <summary>
        /// 销货成本科目
        /// </summary>
        public string SoldAccount { get; set; }

        /// <summary>
        /// 物料二维码
        /// </summary>
        public string ItemQRCode { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        public bool ItemInfoState { get; set; }

        /// <summary>
        /// 审核状态
        /// </summary>
        public bool ReviewStatus { get; set; } = false;
        /// <summary>
        /// 操作人
        /// </summary>
        public string? Handle { get; set; }
        /// <summary>
        /// 操作内容
        /// </summary>
        public string? HandleContext { get; set; }
        /// <summary>
        /// 操作时间
        /// </summary>
        public DateTime? HandleTime { get; set; }
        /// <summary>
        /// pid=1:创建   pid=2:审批   pid=3:删除   pid=4:修改  
        /// </summary>
        public int Pid { get; set; } = 0;
        /// <summary>
        /// 是否删除
        /// </summary>
        public bool IsDelete { get; set; } = true;
    }
}
